import {User} from '../../models/User';
export class UserRegisterDto{
  static toUser(body):User
  {
    var user = new User();
    user.username = body.username;
    user.password = body.password;
    user.nickname = body.nickname;
    user.avatar = body.avatar;
    user.createdAt = new Date();
    return user;
  }
}
